package cqut.gbq.qimo.mapper;

import cqut.gbq.qimo.entity.Teacher;
import org.springframework.stereotype.Repository;

/**
 * @ClassName TeacherMapper
 * @Description TODO
 * @Author guobenqi
 * @Date 2021/6/17 14:33
 */
@Repository
public interface TeacherMapper {
    Teacher findOneBYUsernameAndPassword(String username, String password);

    Integer insertTeacher(String username, String password, String school, String name);

    Teacher getTeacherByTid(Integer tid);

    Integer getNotSubmit(Integer tid);

    Integer getNotCheck(Integer tid);

    Integer getCheck(Integer tid);

    Integer updatePassword(String password, Integer tid);

    Integer updateTeacherInfo(Integer tid, String name, String school, String teacherWorkId);

    Teacher findOneByUserName(String username);
}
